package com.hushao.lims.weblims.service;

import com.hushao.lims.weblims.domain.LabRegistration;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @author 930588706
 * @date 18/1/21
 * 实验室登记
 */
public interface LabRegistrationService {
    /**
     * 根据教室名称或班级名称或教室名称模糊查询实验室登记表（分页）
     * @param teacherName
     * @param className
     * @param classroomName
     * @param pageable
     * @return
     */
    Page<LabRegistration> listLabRegistrationByTeacherNameLikeClassNameLikeClassroomNameLike(String teacherName, String className, String classroomName, Pageable pageable);

    /**
     * 根据ID获取实验室登记记录
     * @param labRegistrationId
     * @return
     */
    LabRegistration getById(Long labRegistrationId);

    /**
     * 修改实验室登记
     * @param labRegistration
     * @param teacherNumber
     * @param className
     * @param classroomName
     * @throws Exception
     */
    void update(LabRegistration labRegistration, String teacherNumber, String className, String classroomName)throws Exception;
}
